package rentalStore;

import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import javax.naming.NameAlreadyBoundException;
import rentalCompany.CarRentalCompanyRemote;

/**
 *
 * @author 
 */
public interface ManagerSessionRemote extends Remote {
    
    public void bindCarRentalCompany(String name, CarRentalCompanyRemote company)
            throws RemoteException, NameAlreadyBoundException;

    public void unbindCarRentalCompany(String name) throws RemoteException;

    public CarRentalCompanyRemote lookupCarRentalCompany(String name) 
            throws RemoteException, NotBoundException;
    
     public int getReservationsForCarType(String name, String carType) 
            throws RemoteException;
    
}
